/**
 * role type
 */
export const AUTHORITY = {
    'admin': 0 as const,
    'user': 1 as const,
}


export const DEFAULT_PAGE_SIZE = 10;

export const ENV_IS_TAIN = process.env.RUN_ENV === "train";

/** 在线/有网 */
export const ONLINE = (process.env.NODE_ENV === "production" && !ENV_IS_TAIN) ? true : false; 

export const ENV_IS_DEV = process.env.NODE_ENV === "development"

// console.log(`ENV_IS_TAIN: ${ENV_IS_TAIN} ENV_IS_DEV: ${ENV_IS_DEV} ONLINE: ${ONLINE}`)